<!DOCTYPE html>
<html>
    <head>
        <style>
            table {
                width:95%;
                border:1px solid black;
            }
        th, td {border:none;
            padding:0in 6pt 0.05in 6pt;
        }
        </style>
        </head>
    <body>
        <center><table>
 <caption><H1> Explanation of entries in the initialization file, thresh_in.txt, for the program thresh </H1></caption>
<tr align=center><th> Descriptor and sample entry</th><th> Variable name </th><th> Type</th><th> Range</th><th> Explanation</th></tr>
<tr align=left><td> Number_Of_Stations,4
</td><td><code>numStations</code>
</td><td> Integer
</td><td> 1&#8211;99
</td><td> Number of rainfall stations to be analyzed, a separate input data file for each station must be listed at the end of the initialization file </td></tr>
<tr align=left><td> Number_Of_Data_Lines, 9600
</td><td><code>maxLines</code>
</td><td> Integer
</td><td> &#62;1
</td><td> Maximum number of lines of data appearing in any of the data files. Used to set array lengths</td></tr>
<tr align=left><td> Readings_Per_Hour, 1
</td><td><code>rph</code>
</td><td> Integer
</td><td> 1&#8211;60
</td><td> Number of times per hour that rainfall data are recorded.  For example, enter 1 for hourly data and 4 for 15-minute data</td></tr>
<tr align=left><td> Precipitation_Unit, in
</td><td><code>precipUnit</code>
</td><td> Character (len=2)
</td><td> in, mm
</td><td> Units of precipitation in input data files</td></tr>
<tr align=left><td> Recent_Hours, 72
</td><td><code> Trecent</code>
</td><td> Integer
</td><td> &#8805;0
</td><td> Applies to the cumulative recent and antecedent (RA) precipitation threshold , determines the number of hours of data for computing the recent rainfall (24R, eq. 5)</td></tr>
<tr align=left><td> Antecedent_Hours, 360
</td><td><code>Tantecedent</code>
</td><td> Integer 
</td><td> &#8805;0
</td><td> Determines the number of hours of data for computing the antecedent rainfall for the cumulative recent and antecedent precipitation threshold (24A hours, eq. 5); may be 0 (zero) for simple cumulative thresholds</td></tr>
<tr align=left><td> Intensity_Hours, 0
</td><td><code>Tintensity</code>
</td><td> Real
</td><td> &#8805;0.
</td><td> Determines number of hours used in computing a running average intensity, such as a 6-hour average intensity; default value, 0, results in computing storm-average intensity</td></tr>
<tr align=left><td> Hours_Between_Storms, 3
</td><td><code>minTStormGap</code>
</td><td> Real
</td><td> &#62;0.
</td><td> Determines the number of hours of no rainfall needed to separate storms in computing the intensity duration threshold</td></tr>
<tr align=left><td> Running_Ave_Intensity_Hours, 6
</td><td><code>TavgIntensity</code>
</td><td> Real
</td><td> &#62;0. 
</td><td> Number of hours used in computing a running average rainfall intensity</td></tr>
<tr align=left><td> Gap_Length, 9000
</td><td><code>maxDataGap</code>
</td><td> Integer
</td><td> &#8805;0 
</td><td> Maximum length in number of lines of data for gaps in the data; if set to 0 (zero), program will set to a minimum value needed to ensure operation depending on other parameters.</td></tr>
<tr align=left><td> Long_Plot_Window_Hours, 360
</td><td><code>numPlotPoints</code>
</td><td> Integer
</td><td> &#62;1
</td><td> Number of values saved to a text file formatted for use by plotting routines</td></tr>
<tr align=left><td>Short_Plot_Window_Hours, 36
</td><td><code>numPlotPoints2</code>
</td><td> Integer
</td><td> &#62;1
</td><td> Number of values saved to a second text file formatted for use by plotting routines</td></tr>
<tr align=left><td> Slope_RA_Threshold, -0.67
</td><td><code>slope</code>
</td><td> Real
</td><td> &#8804;0
</td><td> Slope used in defining the cumulative recent and antecedent precipitation (RA) threshold; may be negative or 0 (zero) for simple cumulative thresholds</td></tr>
<tr align=left><td>Intercept_RA_Threshold, 3.5
</td><td><code>intercept</code>
</td><td> Real
</td><td> &#8805;0
</td><td> Intercept used in defining the cumulative recent and antecedent precipitation (RA) threshold</td></tr>
<tr align=left><td>Power_Law_Defined_Intensity_Duration, .TRUE.
</td><td><code>powerSwitch</code>
</td><td> Logical
</td><td> .True., .False.
</td><td>Used to determine whether the power law will be chosen to calculate intensity-duration thresholds</td></tr>
<tr align=left><td> Coeff_Int_Dur_Threshold, 3.257
</td><td><code>powerCoeff</code>
</td><td> Real
</td><td> &#62;0
</td><td> Coefficient used in defining a power function for the intensity duration threshold</td></tr>
<tr align=left><td> Exponent_Int_Dur_Threshold, -1.13
</td><td><code>powerExp</code>
</td><td> Real 
</td><td> &#60;0
</td><td> Exponent used in defining power function for the intensity duration threshold</td></tr>
<tr align=left><td> Duration_Interval, 0,60
</td><td><code>lowLim, upLim</code>
</td><td> Real
</td><td> &#8805;0
</td><td> Determines the lower and upper duration limits (hours) for intensity-duration thresholds (if the power law is used)</td></tr>
<tr align=left><td> Polynomial_Defined_Intensity_Duration, .FALSE.
</td><td><code>polySwitch</code>
</td><td> Logical
</td><td> .True., .False.
</td><td> Used to determine whether the intensity-duration thresholds will be defined by a fifth degree polynomial</td></tr>
<tr align=left><td> 5th_Deg_Polynom_Coefficients, 0.464559, -0.0373087, 0.00150227, -0.000032942, 0.000000375634, -0.000000000174586
</td><td><code>polynomArr</code>
</td><td> Real
</td><td> any real number
</td><td> Coefficients of the fifth degree polynomial used to represent rainfall intensity and duration thresholds that are not adequately modeled by a power function </td></tr>
<tr align=left><td> Duration Interval, 0,60
</td><td><code>lowLim, upLim</code>
</td><td> Real
</td><td> &#8805;0
</td><td> Determines the lower and upper limits for intensity-duration thresholds (if a polynomial is used)</td></tr>
<tr align=left><td> Pointwise_Defined_Intensity_Duration, .FALSE.
</td><td><code>interSwitch</code>
</td><td>Logical
</td><td> .True., .False.
</td><td> Used to determine whether the intensity-duration thresholds will be defined by linearly interpolating points</td></tr>
<tr align=left><td> Number_Of_Interpolating_Intervals, 5
</td><td><code>intervals</code>
</td><td> Integer
</td><td> 0&#8211;100
</td><td> The number of linearly interpolating intervals chosen by the user</td></tr>
<tr align=left><td> Threshold_unit, in
</td><td><code>thresholdUnit</code>
</td><td> Character (len=2)
</td><td> in, mm
</td><td> Precipitation depth units used to define the thresholds </td></tr>
<tr align=left><td> Reset_antecedent_month_&_day, 0,0
</td><td><code>resetAntMonth,resetAntDay</code>
</td><td> Integer, integer
</td><td> 0&#8211;12, 0&#8211;31
</td><td> The day and month to start annual antecedent rainfall running total</td></tr>
<tr align=left><td> Seasonal_Antecedent_Threshold, 10,in
</td><td><code>seasonalAntThresh, SATunit</code>
</td><td> Real, Character
</td><td> &#8805;0, in, mm
</td><td> The value chosen for the seasonal antecedent threshold and its length units (either inches, in, or millimeters, mm)</td></tr>
<tr align=left><td> Run_Ave_Int_Threshold, 0.12
</td><td><code>runningIntens</code>
</td><td> Real
</td><td> &#8805;0
</td><td> Value of a running average intensity threshold </td></tr>
<tr align=left><td> AWI_Threshold, 0.02
</td><td><code>AWIThresh</code>
</td><td> Real
</td><td> &#62;-1*(Field Capacity)
</td><td> Threshold value for antecedent water index (AWI) in same units as field capacity</td></tr>
<tr align=left><td> Ant_Water_Index_Field_Cap, 0.18, mt
</td><td><code>fieldCap, fcUnit</code>
</td><td> Real, character
</td><td> &#62;0 ft, mt
</td><td> Field capacity of soil and length unit (ft=feet, or mt=meters) used in computing the AWI</td></tr>
<tr align=left><td> AWI_drainage_Constant, 0.01
</td><td><code>drainConst</code>
</td><td>Real
</td><td> &#8805;0
</td><td> Drainage constant, in units compatible with field capacity, used in computing the antecedent water index (AWI)</td></tr>
<tr align=left><td> Hourly_Evap_Consts, 0.054, 0.11, 0.2, 0.43, 0.54, 0.68, 0.72, 0.71, 0.47, 0.17, 0.076, 0.045
</td><td><code>evapConst</code>
</td><td> Real array
</td><td> &#8805;0
</td><td> Hourly evapotranspiration constants for each month of the year from January through December.  Note that these must be in same units as raw precipitation input, either hundredth  of an inch or tenth of a millimeter.</td></tr>
<tr align=left><td> TimeZoneOffset,0
</td><td><code>timezoneOffset</code>
</td><td> Integer
</td><td> -23&#8211;23
</td><td> Number of hours difference between the time zone of the computer performing computations (or Universal time) and the area of observation;  may be 0 (zero) in statistics mode</td></tr>
<tr align=left><td> year, 0
</td><td><code>year</code>
</td><td> Integer
</td><td> 0&#8211;9999
</td><td> The current year or the year of the data being analyzed.  Set to 0 (zero) if the input data file contains year information</td></tr>
<tr align=left><td> Midnight=2400, 2
</td><td><code>midnightVal</code>
</td><td> Integer
</td><td> 1, 2
</td><td> A flag used to compensate for differences in timestamps of different data collection systems. Set to 0 (zero) if midnight=0:00 or 2 if midnight = 24:00.</td></tr>
<tr align=left><td> PlotFormat, gnp2
</td><td><code>plotFormat</code>
</td><td> Character (len=4)
</td><td> gnp1, gnp2, dgrs
</td><td> Plot file formats are ASCII text, the different options are suited to plotting routines in common use.  The choices are "gnp1," "gnp2," and "dgrs."  Option gnp1 is used for plotting current conditions in real-time mode.  Option gnp2 is used for plotting time-series using gnuplot or the data can be imported to a spreadsheet program for plotting.  Option dgrs is used for plotting timeseries using interactive graphing packages and spreadsheet programs.</td></tr>
<tr align=left><td> Statistics?, .FALSE.
</td><td><code>stats</code>
</td><td> Logical
</td><td> .True., .False.
</td><td> A logical variable used to switch statistical computations on (.true.) or off (.false.)</td></tr>
<tr align=left><td> Forecast?, .FALSE.
</td><td><code>forecast</code>
</td><td> Logical
</td><td> .True., .False.
</td><td> A logical variable used to determine if the data provided is a forecast or current. If "forecast" is true, then "statistics" must be set to false.</td></tr>
<tr align=left><td> NameOfOutputFolder, 'C:\Users\user\Documents\thresh\data\'
</td><td><code>outputFolder</code>
</td><td> Character (len=255)
</td><td> any valid path name 
</td><td> Path name of the folder where output files are to be placed. Absolute or relative paths may be used, up to 255 characters long. Final character must be "/" (Unix/Linux) or "\" (Windows).  For best results, put path name between quotes.</td></tr>
<tr align=left><td> ListOfStationNumbers_Localities_InputFiles
</td><td><code>junk</code>
</td><td> Character (len=31)
</td><td> -- 
</td><td> Descriptive heading for list of station numbers, station names, and data input files that follow on succeeding lines</td></tr>
<tr align=left><td> 01, 'Seattle/Boeing Field', 'KBFI_t.txt' <br>02,'Everett/Paine Field','./KPAE_t.txt' <br>03,'Seattle-Tacoma Airport','./KSEA_t.txt' <br>04,'Tacoma Narrows','./KTIW_t.txt'
</td><td><code>tempStatNum(),

tempStatLoc(), 


tempDatLoc()</code>
</td><td> Integer array, Character array (len=50), Character array (len=255)
</td><td> 00&#8211;99







</td><td> Station number (tempStatNum), station name or location (tempStatLoc), and path name (tempDatLoc) of corresponding data file; this pattern is repeated on each succeeding line for the remaining rainfall stations.  For National Weather Service stations, use the last two digits of the NWS Station number.  Station numbers are not required to be in numerical order.  The station name can be either a formal name or if none exists a descriptive name based on location.  File path names can be either full or relative, depending on their relation to the present working directory.</td></tr>
        </table></center>
    </body>
</html>

